package com.api.syh56.shengyunhui.service;

import com.wechat.pay.java.service.payments.model.Transaction;
import com.wechat.pay.java.service.refund.model.RefundNotification;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

import java.util.Map;

public interface NotifyService {
    Transaction wechatPayTradeParser(HttpServletRequest request, HttpServletResponse response);

    RefundNotification wechatPayRefundPaser(HttpServletRequest request, HttpServletResponse response);


    /**
     * jsapi支付（仅作参考）
     * @param requestBody
     * @return
     * @throws Exception
     */
    Map<String,String> jsapiPrepayWithRequestPaymentResponse(Map<String,String> requestBody) throws Exception;

    /**
     * App支付（仅作参考）
     * @param requestBody
     * @return
     * @throws Exception
     */
    Map<String,String> AppPrepayWithRequestPaymentResponse(Map<String,String> requestBody) throws Exception;
}
